package oo.poly;

import java.util.Arrays;

/**
 * @author mubei
 * @date 2021/12/20
 * @description
 */
public class Test {

    public static void main(String[] args) {
        Owner owner = new Owner();
        Animal animal = new Dog();
        final Animal a = new Animal(4);
        owner.feed(animal);

        System.out.println(animal instanceof Animal);
        System.out.println(animal instanceof Dog);
        /*
        * 小狗此骨头
        * 看的是运行类型  是XX的子类型 或者子子类型
        * true
        * true
        * */
    }
}
